<?php
require_once __DIR__ . '/common.php';

$library = new \Library\test();
$library->run();
// $articleModel = new Model\Article();
// echo $articleModel->export();

// echo round(memory_get_usage() / 1024 / 1024, 2) . 'MB' . PHP_EOL;
// echo 1;
// echo round(memory_get_usage() / 1024 / 1024, 2) . 'MB' . PHP_EOL;

// $list = db::findAll('article', [], 'limit 0,10000');
// echo round(memory_get_usage() / 1024 / 1024, 2) . 'MB' . PHP_EOL;

// foreach ($list as $k => $v) {
//     unset($v['id']);
//     db::insert('article', $v);
//     echo $k . '/' . count($list) . PHP_EOL;
// }
